//
//  IMDelegate.h
//  IMChezhil
//
//  Created by zhangliucheng on 15/7/8.
//  Copyright (c) 2015年 CheZhil. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "IMUserMessage.h"

/**
 *  遇聊天服务器登陆结果.
 */
typedef void(^OnLoginBlock)(BOOL success);

/**
 *  账号异地登陆和当前不在聊天对话框收到的消息处理.
 */
@protocol IMNotificationReceiverDelegate <NSObject>

- (void)OnOtherLoginBlock;                          // 账号异地登陆
- (void)OnMessageNotificater:(IMUserMessage *)message; // 消息通知

@end

/**
 *  发送消息结果和接收到消息回调
 */
@protocol IMMessageReceiverDelegate <NSObject>

- (void)receiveMessage:(IMUserMessage *)message;
- (void)sendMessageResult:(IMUserMessage *)message;

@end
